package com.System.Dao;

import com.System.pojo.Comment;
import com.System.pojo.DisSupport;
import com.System.pojo.Post;
import com.System.pojo.Support;

import java.util.List;

public interface CommentDao {
    public List<Comment>selectAllComment(Comment comment);
    public List<Comment>selectOutOfMyComment(Comment comment);
    public void addComment(Comment comment);
    public void supportComment(Comment comment);
    public void deleteSupport(Support support);
    public void updateComment(Comment comment);
    public Comment selectLikeNumbers(Comment comment);
    public void addDisSupport(DisSupport disSupport);
    public void deleteDisFavor(DisSupport disSupport);
    public DisSupport hasDisSupport(DisSupport disSupport);
    public Support hasSupport(Support support);
    public void updateLikeNumber(Comment comment);
    public void addSupport(Support support);
    public void deleteMyComment(Comment comment);
    public Post selectPostOwner(Post post);
}
